<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'MemberImpExp.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<jsp:include page="../inc.jsp"></jsp:include>
  </head>
  <script type="text/javascript">
  	 function doimp(){
	  	if(document.form1.impfile.value==""){
	  		alert('请选择需要上传的附件!');
	  		return false;
	  	}else{
	  		document.form1.action="impexcel";
	  		document.form1.submit();
	  	}
	  	return false;
 	 }
	  
	  function doexp(){
	  	document.form1.action="expexcel";
	  	document.form1.submit();
	  	return false;
	  }
	  
  
  </script>
  <body>
    <form id="form1" name="form1" method="post" action="" enctype="multipart/form-data">
	  <br><br>
	<center> <input type="file" name="impfile"/><br><br>
	  <input type="button"  class="easyui-linkbutton"  name="导入" value="导入" onClick="return doimp();" />
	  &nbsp;<input type="button" class="easyui-linkbutton"  name="导出" value="导出" onClick="return doexp();"/></center> 
	</form>
  </body>
</html>
